package de.sendorian.app.forumArchive.download;

import java.util.Set;

import de.sendorian.app.forumArchive.domain.Link;
import de.sendorian.app.forumArchive.domain.Topic;


/**
 * Simple parameter class for {#{@link Downloader}.
 */
class TopicInfos {
    
    private Topic topic;
    private String path;
    private Set<String> downloadedFiles;
    private Set<Link> links;
    private int archiveCount;
    private int imageCount;


    TopicInfos(Topic topic, String path, Set<String> downloadedFiles, Set<Link> links, int imageCount, int archiveCount) {
        this.topic = topic;
        this.path = path;
        this.downloadedFiles = downloadedFiles;
        this.links = links;
        this.imageCount = imageCount;
        this.archiveCount = archiveCount;
    }


    public Set<Link> getLinks() {
        return links;
    }


    public String getDownloadedFilesString() {
        return Downloader.createTopicInfoList(downloadedFiles, "Downloaded files in topic \"" + topic + "\":\n");
    }


    public Set<String> getDownloadedFiles() {
        return downloadedFiles;
    }


    public Topic getTopic() {
        return topic;
    }


    public String getPath() {
        return path;
    }


    public int getArchiveCount() {
        return archiveCount;
    }


    public int getImageCount() {
        return imageCount;
    }

}
